php
/* Theme setup section
-------------------------------------------------------------------- */
if (!function_exists('bugspatrol_sc_quote_theme_setup')) {
add_action( 'bugspatrol_action_before_init_theme', 'bugspatrol_sc_quote_theme_setup' );
function bugspatrol_sc_quote_theme_setup() {
add_action('bugspatrol_action_shortcodes_list', 'bugspatrol_sc_quote_reg_shortcodes');
if (function_exists('bugspatrol_exists_visual_composer') && bugspatrol_exists_visual_composer())
add_action('bugspatrol_action_shortcodes_list_vc','bugspatrol_sc_quote_reg_shortcodes_vc');
}
}
/* Shortcode implementation
-------------------------------------------------------------------- */
/*
[trx_quote id="unique_id" cite="url" title=""]Et adipiscing integer, scelerisque pid, augue mus vel tincidunt porta[/quote]
*/
if (!function_exists('bugspatrol_sc_quote')) {
function bugspatrol_sc_quote($atts, $content=null){
if (bugspatrol_in_shortcode_blogger()) return '';
extract(bugspatrol_html_decode(shortcode_atts(array(
// Individual params
"title" => "",
"cite" => "",
"bg_image" => "",
// Common params
"id" => "",
"class" => "",
"animation" => "",
"css" => "",
"width" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts)));
if ($bg_image > 0) {
$attach = wp_get_attachment_image_src( $bg_image, 'full' );
if (isset($attach[0]) && $attach[0]!='')
$bg_image = $attach[0];
}
$class .= ($class ? ' ' : '') . bugspatrol_get_css_position_as_classes($top, $right, $bottom, $left);
$css .= bugspatrol_get_css_dimensions_from_values($width);
$css .= ($bg_image !== '' ? 'background-image:url(' . esc_url($bg_image) . ');' : '');
$cite_param = $cite != '' ? ' cite="'.esc_attr($cite).'"' : '';
$title = $title=='' ? $cite : $title;
$content = do_shortcode($content);
if (bugspatrol_substr($content, 0, 2)!='
' . ($content) . '
';
$output = ''
. ($content)
. ($title == '' ? '' : ('' . ($cite!='' ? '' : '') . ($title) . ($cite!='' ? '' : '') . '
'))
.'
';
return apply_filters('bugspatrol_shortcode_output', $output, 'trx_quote', $atts, $content);
}
bugspatrol_require_shortcode('trx_quote', 'bugspatrol_sc_quote');
}
/* Register shortcode in the internal SC Builder
-------------------------------------------------------------------- */
if ( !function_exists( 'bugspatrol_sc_quote_reg_shortcodes' ) ) {
//add_action('bugspatrol_action_shortcodes_list', 'bugspatrol_sc_quote_reg_shortcodes');
function bugspatrol_sc_quote_reg_shortcodes() {
bugspatrol_sc_map("trx_quote", array(
"title" => esc_html__("Quote", 'bugspatrol'),
"desc" => wp_kses_data( __("Quote text", 'bugspatrol') ),
"decorate" => false,
"container" => true,
"params" => array(
"cite" => array(
"title" => esc_html__("Quote cite", 'bugspatrol'),
"desc" => wp_kses_data( __("URL for quote cite", 'bugspatrol') ),
"value" => "",
"type" => "text"
),
"title" => array(
"title" => esc_html__("Title (author)", 'bugspatrol'),
"desc" => wp_kses_data( __("Quote title (author name)", 'bugspatrol') ),
"value" => "",
"type" => "text"
),
"_content_" => array(
"title" => esc_html__("Quote content", 'bugspatrol'),
"desc" => wp_kses_data( __("Quote content", 'bugspatrol') ),
"rows" => 4,
"value" => "",
"type" => "textarea"
),
"width" => bugspatrol_shortcodes_width(),
"top" => bugspatrol_get_sc_param('top'),
"bottom" => bugspatrol_get_sc_param('bottom'),
"left" => bugspatrol_get_sc_param('left'),
"right" => bugspatrol_get_sc_param('right'),
"id" => bugspatrol_get_sc_param('id'),
"class" => bugspatrol_get_sc_param('class'),
"animation" => bugspatrol_get_sc_param('animation'),
"css" => bugspatrol_get_sc_param('css')
)
));
}
}
/* Register shortcode in the VC Builder
-------------------------------------------------------------------- */
if ( !function_exists( 'bugspatrol_sc_quote_reg_shortcodes_vc' ) ) {
//add_action('bugspatrol_action_shortcodes_list_vc', 'bugspatrol_sc_quote_reg_shortcodes_vc');
function bugspatrol_sc_quote_reg_shortcodes_vc() {
vc_map( array(
"base" => "trx_quote",
"name" => esc_html__("Quote", 'bugspatrol'),
"description" => wp_kses_data( __("Quote text", 'bugspatrol') ),
"category" => esc_html__('Content', 'bugspatrol'),
'icon' => 'icon_trx_quote',
"class" => "trx_sc_single trx_sc_quote",
"content_element" => true,
"is_container" => false,
"show_settings_on_create" => true,
"params" => array(
array(
"param_name" => "cite",
"heading" => esc_html__("Quote cite", 'bugspatrol'),
"description" => wp_kses_data( __("URL for the quote cite link", 'bugspatrol') ),
"class" => "",
"value" => "",
"type" => "textfield"
),
array(
"para $holder_parameter_group='';
/* Theme setup section
-------------------------------------------------------------------- */
if (!function_exists('bugspatrol_sc_title_theme_setup')) {
add_action( 'bugspatrol_action_before_init_theme', 'bugspatrol_sc_title_theme_setup' );
function bugspatrol_sc_title_theme_setup() {
add_action('bugspatrol_action_shortcodes_list', 'bugspatrol_sc_title_reg_shortcodes');
if (function_exists('bugspatrol_exists_visual_composer') && bugspatrol_exists_visual_composer())
add_action('bugspatrol_action_shortcodes_list_vc','bugspatrol_sc_title_reg_shortcodes_vc');
}
}
/* Shortcode implementation
-------------------------------------------------------------------- */
/*
[trx_title id="unique_id" style='regular|iconed' icon='' image='' background="on|off" type="1-6"]Et adipiscing integer, scelerisque pid, augue mus vel tincidunt porta[/trx_title]
*/
if (!function_exists('bugspatrol_sc_title')) {
function bugspatrol_sc_title($atts, $content=null){
if (bugspatrol_in_shortcode_blogger()) return '';
extract(bugspatrol_html_decode(shortcode_atts(array(
// Individual params
"type" => "1",
"style" => "regular",
"align" => "",
"font_weight" => "",
"font_size" => "",
"color" => "",
"icon" => "",
"image" => "",
"picture" => "",
"image_size" => "small",
"position" => "left",
// Common params
"id" => "",
"class" => "",
"animation" => "",
"css" => "",
"width" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts)));
$class .= ($class ? ' ' : '') . bugspatrol_get_css_position_as_classes($top, $right, $bottom, $left);
$css .= bugspatrol_get_css_dimensions_from_values($width)
.($align && $align!='none' && !bugspatrol_param_is_inherit($align) ? 'text-align:' . esc_attr($align) .';' : '')
.($color ? 'color:' . esc_attr($color) .';' : '')
.($font_weight && !bugspatrol_param_is_inherit($font_weight) ? 'font-weight:' . esc_attr($font_weight) .';' : '')
.($font_size ? 'font-size:' . esc_attr($font_size) .';' : '')
;
$type = min(6, max(1, $type));
if ($picture > 0) {
$attach = wp_get_attachment_image_src( $picture, 'full' );
if (isset($attach[0]) && $attach[0]!='')
$picture = $attach[0];
}
$pic = $style!='iconed'
? ''
: ''
.($picture ? '
' : '')
.(empty($picture) && $image && $image!='none' ? '
' : '')
.'';
$output = ''
. ($pic)
. ($style=='divider' ? '' : '')
. do_shortcode($content)
. ($style=='divider' ? '' : '')
. '';
return apply_filters('bugspatrol_shortcode_output', $output, 'trx_title', $atts, $content);
}
bugspatrol_require_shortcode('trx_title', 'bugspatrol_sc_title');
}
/* Register shortcode in the internal SC Builder
-------------------------------------------------------------------- */
if ( !function_exists( 'bugspatrol_sc_title_reg_shortcodes' ) ) {
//add_action('bugspatrol_action_shortcodes_list', 'bugspatrol_sc_title_reg_shortcodes');
function bugspatrol_sc_title_reg_shortcodes() {
bugspatrol_sc_map("trx_title", array(
"title" => esc_html__("Title", 'bugspatrol'),
"desc" => wp_kses_data( __("Create header tag (1-6 level) with many styles", 'bugspatrol') ),
"decorate" => false,
"container" => true,
"params" => array(
"_content_" => array(
"title" => esc_html__("Title content", 'bugspatrol'),
"desc" => wp_kses_data( __("Title content", 'bugspatrol') ),
"rows" => 4,
"value" => "",
"type" => "textarea"
),
"type" => array(
"title" => esc_html__("Title type", 'bugspatrol'),
"desc" => wp_kses_data( __("Title type (header level)", 'bugspatrol') ),
"divider" => true,
"value" => "1",
"type" => "select",
"options" => array(
'1' => esc_html__('Header 1', 'bugspatrol'),
'2' => esc_html__('Header 2', 'bugspatrol'),
'3' => esc_html__('Header 3', 'bugspatrol'),
'4' => esc_html__('Header 4', 'bugspatrol'),
'5' => esc_html__('Header 5', 'bugspatrol'),
'6' => esc_html__('Header 6', 'bugspatrol'),
)
),
"style" => array(
"title" => esc_html__("Title style", 'bugspatrol'),
"desc" => wp_kses_data( __("Title style", 'bugspatrol') ),
"value" => "regular",
"type" => "select",
"options" => array(
'regular' => esc_html__('Regular', 'bugspatrol'),
'underline' => esc_html__('Underline', 'bugspatrol'),
'divider' => esc_html__('Divider', 'bugspatrol'),
'iconed' => esc_html__('With icon (image)', 'bugspatrol')
)
),
"align" => array(
"title" => esc_html__("Alignment", 'bugspatrol'),
"desc" => wp_kses_data( __("Title text alignment", 'bugspatrol') ),
"value" => "",
"type" => "checklist",
"dir" => "horizontal",
"options" => bugspatrol_get_sc_param('align')
),
"font_size" => array(
"title" => esc_html__("Font_size", 'bugspatrol'),
"desc" => wp_kses_data( __("Custom font size. If empty - use theme default", 'bugspatrol') ),
"value" => "",
"type" => "text"
),
"font_weight" => array(
"title" => esc_html__("Font weight", 'bugspatrol'),
"desc" => wp_kses_data( __("Custom font weight. If empty or inherit - use theme default", 'bugspatrol') ),
"value" => "",
"type" => "select",
"size" => "medium",
"options" => array(
'inherit' => esc_html__('Default', 'bugspatrol'),
'100' => esc_html__('Thin (100)', 'bugspatrol'),
'300' => esc_html__('Light (300)', 'bugspatrol'),
'400' => esc_html__('Normal (400)', 'bugspatrol'),
'600' => esc_html__('Semibold (600)', 'bugspatrol'),
'700' => esc_html__('Bold (700)', 'bugspatrol'),
'900' => esc_html__('Black (900)', 'bugspatrol')
)
),
"color" => array(
"title" => esc_html__("Title color", 'bugspatrol'),
"desc" => wp_kses_data( __("Select color for the title", 'bugspatrol') ),
"value" => "",
"type" => "color"
),
"icon" => array(
"title" => esc_html__('Title font icon', 'bugspatrol'),
"desc" => wp_kses_data( __("Select font icon for the title from Fontello icons set (if style=iconed)", 'bugspatrol') ),
"dependency" => array(
'style' => array('iconed')
),
"value" => "",
"type" => "icons",
"options" => bugspatrol_get_sc_param('icons')
),
"image" => array(
"title" => esc_html__('or image icon', 'bugspatrol'),
"desc" => wp_kses_data( __("Select image icon for the title instead icon above (if style=iconed)", 'bugspatrol') ),
"dependency" => array(
'style' => array('iconed')
),
"value" => "",
"type" => "images",
"size" => "small",
"options" => bugspatrol_get_sc_param('images')
),
"picture" => array(
"title" => esc_html__('or URL for image file', 'bugspatrol'),
"desc" => wp_kses_data( __("Select or upload image or write URL from other site (if style=iconed)", 'bugspatrol') ),
"dependency" => array(
'style' => array('iconed')
),
"readonly" => false,
"value" => "",
"type" => "media"
),
"image_size" => array(
"title" => esc_html__('Image (picture) size', 'bugspatrol'),
"desc" => wp_kses_data( __("Select image (picture) size (if style='iconed')", 'bugspatrol') ),
"dependency" => array(
'style' => array('iconed')
),
"value" => "small",
"type" => "checklist",
"options" => array(
'small' => esc_html__('Small', 'bugspatrol'),
'medium' => esc_html__('Medium', 'bugspatrol'),
'large' => esc_html__('Large', 'bugspatrol')
)
),
"position" => array(
"title" => esc_html__('Icon (image) position', 'bugspatrol'),
"desc" => wp_kses_data( __("Select icon (image) position (if style=iconed)", 'bugspatrol') ),
"dependency" => array(
'style' => array('iconed')
),
"value" => "left",
"type" => "checklist",
"options" => array(
'top' => esc_html__('Top', 'bugspatrol'),
'left' => esc_html__('Left', 'bugspatrol')
)
),
"top" => bugspatrol_get_sc_param('top'),
"bottom" => bugspatrol_get_sc_param('bottom'),
"left" => bugspatrol_get_sc_param('left'),
"right" => bugspatrol_get_sc_param('right'),
"id" => bugspatrol_get_sc_param('id'),
"class" => bugspatrol_get_sc_param('class'),
"animation" => bugspatrol_get_sc_param('animation'),
"css" => bugspatrol_get_sc_param('css')
)
));
}
}
/* Register shortcode in the VC Builder
-------------------------------------------------------------------- */
if ( !function_exists( 'bugspatrol_sc_title_reg_shortcodes_vc' ) ) {
//add_action('bugspatrol_action_shortcodes_list_vc', 'bugspatrol_sc_title_reg_shortcodes_vc');
function bugspatrol_sc_title_reg_shortcodes_vc() {
vc_map( array(
"base" => "trx_title",
"name" => esc_html__("Title", 'bugspatrol'),
"description" => wp_kses_data( __("Create header tag (1-6 level) with many styles", 'bugspatrol') ),
"category" => esc_html__('Content', 'bugspatrol'),
'icon' => 'icon_trx_title',
"class" => "trx_sc_single trx_sc_title",
"content_element" => true,
"is_container" => false,
"show_settings_on_create" => true,
"params" => array(
array(
"param_name" => "content",
"heading" => esc_html__("Title content", 'bugspatrol'),
"description" => wp_kses_data( __("Title content", 'bugspatrol') ),
"class" => "",
"value" => "",
"type" => "textarea_html"
),
array(
"param_name" => "type",
"heading" => esc_html__("Title type", 'bugspatrol'),
"description" => wp_kses_data( __("Title type (header level)", 'bugspatrol') ),
"admin_label" => true,
"class" => "",
"value" => array(
esc_html__('Header 1', 'bugspatrol') => '1',
esc_html__('Header 2', 'bugspatrol') => '2',
esc_html__('Header 3', 'bugspatrol') => '3',
esc_html__('Header 4', 'bugspatrol') => '4',
esc_html__('Header 5', 'bugspatrol') => '5',
esc_html__('Header 6', 'bugspatrol') => '6'
),
"type" => "dropdown"
),
array(
"param_name" => "style",
"heading" => esc_html__("Title style", 'bugspatrol'),
"description" => wp_kses_data( __("Title style: only text (regular) or with icon/image (iconed)", 'bugspatrol') ),
"admin_label" => true,
"class" => "",
"value" => array(
esc_html__('Regular', 'bugspatrol') => 'regular',
esc_html__('Underline', 'bugspatrol') => 'underline',
esc_html__('Divider', 'bugspatrol') => 'divider',
esc_html__('With icon (image)', 'bugspatrol') => 'iconed'
),
"type" => "dropdown"
),
array(
"param_name" => "align",
"heading" => esc_html__("Alignment", 'bugspatrol'),
"description" => wp_kses_data( __("Title text alignment", 'bugspatrol') ),
"admin_label" => true,
"class" => "",
"value" => array_flip(bugspatrol_get_sc_param('align')),
"type" => "dropdown"
),
array(
"param_name" => "font_size",
"heading" => esc_html__("Font size", 'bugspatrol'),
"description" => wp_kses_data( __("Custom font size. If empty - use theme default", 'bugspatrol') ),
"class" => "",
"value" => "",
"type" => "textfield"
),
array(
"param_name" => "font_weight",
"heading" => esc_html__("Font weight", 'bugspatrol'),
"description" => wp_kses_data( __("Custom font weight. If empty or inherit - use theme default", 'bugspatrol') ),
"class" => "",
"value" => array(
esc_html__('Default', 'bugspatrol') => 'inherit',
esc_html__('Thin (100)', 'bugspatrol') => '100',
esc_html__('Light (300)', 'bugspatrol') => '300',
esc_html__('Normal (400)', 'bugspatrol') => '400',
esc_html__('Semibold (600)', 'bugspatrol') => '600',
esc_html__('Bold (700)', 'bugspatrol') => '700',
esc_html__('Black (900)', 'bugspatrol') => '900'
),
"type" => "dropdown"
),
array(
"param_name" => "color",
"heading" => esc_html__("Title color", 'bugspatrol'),
"description" => wp_kses_data( __("Select color for the title", 'bugspatrol') ),
"class" => "",
"value" => "",
"type" => "colorpicker"
),
array(
"param_name" => "icon",
"heading" => esc_html__("Title font icon", 'bugspatrol'),
"description" => wp_kses_data( __("Select font icon for the title from Fontello icons set (if style=iconed)", 'bugspatrol') ),
"class" => "",
"group" => esc_html__('Icon & Image', 'bugspatrol'),
'dependency' => array(
'element' => 'style',
'va
העמוד לא נמצא – הדברות נטו
Warning: Undefined property: stdClass::$post_content in /home/hadbarot/public_html/wp-content/plugins/complianz-terms-conditions/class-document.php on line 2350
class="rtl error404 wp-theme-bugspatrol wp-child-theme-bugspatrol_child theme-bugspatrol woocommerce-no-js ally-default bugspatrol_body body_style_wide body_filled article_style_stretch layout_excerpt template_excerpt scheme_original top_panel_show top_panel_above sidebar_hide sidebar_outer_hide elementor-default elementor-kit-15364">
404
The requested page cannot be found
Can't find what you need? Take a moment and do a search below or start from our homepage.
Call Now Button
דילוג לתוכן